package com.zxp.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxp.mall.common.utils.PageUtils;
import com.zxp.mall.member.entity.MemberEntity;
import com.zxp.mall.member.exception.PhoneExistException;
import com.zxp.mall.member.exception.UsernameExistException;
import com.zxp.mall.member.vo.MemberLoginVo;
import com.zxp.mall.member.vo.MemberRegisterVo;
import com.zxp.mall.member.vo.MemberSocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author zhouxinpu
 * @email 663103104@gmail.com
 * @date 2024-03-07 12:19:08
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void registe(MemberRegisterVo vo);
    
    void checkUsernameUnique(String username) throws UsernameExistException;

    void checkPhoneUnique(String phone) throws PhoneExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(MemberSocialUser user) throws Exception;
}

